package com.vhall.component.controller.account.facade.api;

import com.vhall.component.entity.account.vo.CodeVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author longzhen.gong
 * @date 2021/6/9 16:33
 */
@FeignClient(value = "ApiCodeFacade", path = "/v4/api/account/code")
public interface ApiCodeFacade {

    /**
     * 发送验证码
     *
     * @param codeVO 参数
     */
    @ApiOperation("发送验证码")
    @PostMapping("/send")
    Boolean sendCode(@Validated CodeVO codeVO);
}
